def template_generation(template, **kwargs):
    return template.format(**kwargs)

template = "今天在{city}的最高温度为{temperature}度。"
output = template_generation(template, city="北京", temperature=25)
print(output)
